<template>
    <el-pagination style="margin-top: 20px;":current-page="currentPage" :page-size="pageSize" :disabled="disabled" background
        layout="total, prev, pager, next, jumper" :total="total" @current-change="handleCurrentChange" />
</template>
<script setup lang="ts">
import { ref } from "vue"

const disabled = ref(false)
defineProps<{
    currentPage: number
    pageSize: number
    total: number
}>()
const emits = defineEmits(['pageChange']);
const handleCurrentChange = (val: number,loading:boolean) => {
    loading=true
    emits('pageChange', val,loading);
}
</script>
<style lang="scss" scoped></style>
